import BaseApi from '../BaseApi';

const controller = "/marketing";

export default {

    getList(condition) {
        return this.requestPost(controller, "/getList", condition);
    },
    addOrUpdateActivities(condition) {
        return this.requestPost(controller, "/addOrUpdateActivities", condition);
    },
    deleteActivities(condition) {
        return this.requestPost(controller, "/deleteActivities", condition);
    },
    /*请求封装*/
    requestPost(controller, url, condition) {
        let newUrl = controller + url;
        return BaseApi.requestPost(newUrl, condition);

    },
    requestGet(controller, url, condition) {
        let newUrl = controller + url;
        return BaseApi.requestGet(newUrl, condition);
    },


}
